package domain

import "github.com/jinzhu/gorm"

type Wallet struct {
	gorm.Model
	AccountId int64 `json:"accountId" form:"accountId" example:"1212121212"`
	Amount float64 `json:"amount" example:"9999.99"`
}


type WalletLog struct {
	gorm.Model
	AccountId int64 `json:"accountId" example:"390246600456011800"`
	Amount float64 `json:"amount" example:"9999.99"`
	Type uint `json:"type" example:"100"` //100-在线充值,120-现金红包,200-提现，220-购买金币 等类型
}



type GoldCoin struct {
	gorm.Model
	AccountId int64 `json:"accountId" example:"390246600456011800"`
	Amount float64 `json:"amount" example:"9999.99"`
}



type GoldCoinLog struct {
	gorm.Model
	AccountId int64 `json:"accountId" example:"390246600456011800"`
	Amount float64 `json:"amount" example:"9999.99"`
	Type uint `json:"type" example:"100"` //100-在线购买,120-金币红包等类型
}